package com.aizuda.boot.modules.business.contract_import.controller;

import cn.hutool.http.Header;
import com.aizuda.boot.modules.business.contract_import.service.ContractImportService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;

/**
 * 合同导入管理控制器
 */
@Slf4j
@RestController
@RequestMapping("/contract-import")
@Tag(description = "/contract-import", name = "合同导入管理接口")
@Validated
public class ContractImportController {

    @Resource
    private ContractImportService contractImportService;

    @Operation(summary = "下载合同表单导入模版")
    @GetMapping("/downloadTemplate")
    public void downloadTemplate(HttpServletRequest request, HttpServletResponse response) throws IOException {
        contractImportService.downloadTemplate(request, response);
    }
    

}